<br><br>
<div id="wrap" class="clearfix">

    <div id="aside">

        <ol>
            <li><span>1</span><?= lang ( 'checkout.your.shopping.cart' ) ?></li>
            <li><span>2</span><?= lang ( 'checkout.payment.info' ) ?></li>
            <li class="active"><span>3</span><?= lang ( 'checkout.process.your.order' ) ?></li>
        </ol>

    </div><!-- / Aside -->

    <div id="main">

        <div class="title">
            <?
                if ( isset ( $show_paid ) )
                {
                    if ( $transaction->result == "OK" )
                    {
                        ?>
                        <h2><?= lang ( 'checkout.your.patment.successful' ) ?> </h2>
                        <?
                    }
                    else
                    {
                        ?>
                        <h2><?= lang ( 'checkout.your.patment.declined' ) ?> </h2> <?
                    }
                }
                else
                {
                    ?>
                    <h2><?= lang ( 'checkout.process.your.order' ) ?></h2>
                <? } ?>
        </div>

        <div class="inner-form customer-info">

            <h3><span><?= lang ( 'checkout.your.order' ) ?></span></h3>
            <dl>
                <dt><?= $order->exc_title ?> <span><? echo $order->eb_totalprice ?>€</span></dt>
                <dd>
                    <ul>
                        <? $week_days = lang ( 'week_days' ); ?>
                        <li><span class="capitalize"><?= lang ( 'days' ) ?>:</span>            <span>1</span></li>

                        <?
                            if ( isset ( $booking_info->date ) )
                                $start_date = $booking_info->date;
                            else
                                $start_date = $order->eb_date_from;
                        ?>
                        <li><span><?= lang ( 'start_day' ) ?>:</span>            <span><?= $week_days[date ( 'N', $start_date ) - 1] . ', ' . date ( "d.m.Y", $start_date ) ?></span></li>
                        <li><span><?= lang ( 'pickup_info' ) ?>:</span>            
                            <span><?
                                    if ( !isset ( $booking_info->pickup_location ) )
                                    {
                                        echo "Globtour Montenegro";
                                    }
                                    else
                                        echo $booking_info->pickup_location . 'h';
                                ?>
                            </span>
                        </li>
                        <li><span><?= lang ( 'guides' ) ?>:</span>            <span><?= clean_html_p ( $order->exc_guides ) ?></span></li>
                    </ul>
                </dd>
            </dl>
            <dl>
                <dt class="capitalize"><?= lang ( 'persons' ) ?></dt>
                <dd>
                    <ul>
                        <?
                            if ( $order->eb_noadult > 0 ):
                                $tot_adl = $booking_info->adultprice * $booking_info->noadult;
                                $tot_adl = number_format ( $tot_adl, 2 );
                                ?>
                                <li><span><?= lang ( 'adults' ) ?>:</span>            <span><?= $booking_info->noadult . ' x ' . $booking_info->adultprice . ' = ' . $tot_adl . "&euro;" ?></span></li>
                                <?
                            endif;
                            if ( $order->eb_noch > 0 ):
                                $tot_ch = $booking_info->chprice * $booking_info->noch;
                                $tot_ch = number_format ( $tot_ch, 2 );
                                ?>
                                <li><span><?= lang ( 'children' ) ?>:</span>            <span><?= $booking_info->noch . ' x ' . $booking_info->chprice . ' = ' . $tot_ch . "&euro;" ?></span></li>
                                <?
                            endif;
                        ?>    
                    </ul>
                </dd>
            </dl>



            <?
                if ( isset ( $show_paid ) )
                {
                    if ( $transaction->result != "OK" )
                        $order->eb_totalprice = 0;
                    ?>
                    <p class="total">Paid: <span><?= $order->eb_totalprice ?>€</span></p>
                    <?
                }
                else
                {
                    ?>

                    <p class="total"  <? if ( isset ( $show_paid ) ) echo 'style="margin-bottom: 7px; border-bottom:0"'; ?>><?= lang ( 'total' ) ?>: <span><?= $order->eb_totalprice ?>€</span></p>

                <? } ?>

            <h3><span><?= lang ( 'checkout.contact.information' ) ?></span></h3>
            <dl>
                <dd>
                    <ul>
                        <li><span><?= lang ( 'checkout.contact.name' ) ?>:</span>        <span><?= $order->cust_firstName ?></span></li>
                        <li><span><?= lang ( 'checkout.email' ) ?>:</span>    <span><?= $order->cust_email ?></span></li>
                        <li><span><?= lang ( 'checkout.telephone' ) ?>:</span>    <span><?= $order->cust_phone ?></span></li>
                        <li><span><?= lang ( 'checkout.note' ) ?>:</span>        <span><?
                                    if ( $order->eb_note == '' )
                                    {
                                        echo 'Empty';
                                    }
                                    else
                                        echo $order->eb_note;
                                ?></span></li>
                    </ul>
                </dd>
            </dl>
            
            <h3><span><?= lang('checkout.your.address') ?></span></h3>
            <dl>
                <dd>
                    <ul>
                        <li><span><?= lang('checkout.address') ?>:</span>        <span><?= $order->address ?></span></li>
                        <li><span><?= lang('checkout.city') ?>:</span>    <span><?= $order->city ?></span></li>
                        <li><span><?= lang('checkout.zip') ?>:</span>    <span><?= $order->zip ?></span></li>
                        <li><span><?= lang('checkout.country') ?>:</span>    <span><?= $order->country ?></span></li>
                        
                    </ul>
                </dd>
            </dl>

            <p class="terms"><?= lang ( 'checkout.agree.terms.conditions' ) ?> <?= lang ( 'menu.terms.conditions' ) ?> <span><?= lang ( 'checkout.yes' ) ?></span></p>

        </div>

        <?
            if ( !isset ( $show_paid ) )
            {
                ?>

                <div class="buttons-cart customer-info-button">
                    <a href="http://www.informacionisistem.com/payservice/service/pay/<?= $order->eb_newid ?>/excursion/<?= $this->lang->lang () ?>" class="submit_button"><?= lang ( 'checkout.pay' ) ?></a>
                </div>

                <?
            }
            else
                echo "<br/><br/><br/>";
        ?>

    </div><!-- / Mian -->

</div><!-- / Wrap -->